from django.db import models

class IndustryReport(models.Model):
    """产业报告模型"""
    title = models.CharField('报告标题', max_length=255)
    content = models.TextField('报告内容')
    workflow_name = models.IntegerField('工作流名称', default=2)  # 2表示产业报告
    created_at = models.DateTimeField('创建时间', auto_now_add=True)
    updated_at = models.DateTimeField('更新时间', auto_now=True)
    report_type = models.IntegerField('报告类型', default=0)  # 添加字段定义
    report_style = models.IntegerField('报告风格', default=0)  # 添加字段定义
    industry = models.CharField('产业', max_length=100, default='')  # 添加字段定义
    
    class Meta:
        db_table = 'reports'  # 使用同一个表
        ordering = ['-created_at']
        managed = False
